package logging

// SeverityFilter 日志级别过滤器
type SeverityFilter struct {
	Severity Severity // 日志级别
}

// Filter 过滤
func (f *SeverityFilter) Filter(rec *Record) bool {
	return rec.Severity >= f.Severity
}
